package com.justgame.project.service.art.feign;

import com.justgame.project.cloud.common.constant.AppConstant;
import com.justgame.project.service.art.feign.fallback.ArtPageInfoClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * ArtPageInfo 微服务接口
 * @author ZhouWeiBo
 * @create 2022/4/19
 */
@FeignClient( value = AppConstant.ART,fallback = ArtPageInfoClientFallback.class)
public interface IArtPageInfoClient {
    String API_PREFIX = "/feign/art-page";
    String REFRESH_PAGE_NUM = API_PREFIX + "/refresh-num";

    /**
     * 定时刷新文章相关数量接口
     * @param numKey String
     * @return Boolean.class
     */
    @PostMapping(REFRESH_PAGE_NUM)
    Boolean refreshPageNum(@RequestBody String jsonStr,@RequestParam("numKey")String numKey);

}
